package com.hsogoo.study.spring.propertysource;

import org.junit.Test;
import org.springframework.core.env.Environment;
import org.springframework.core.env.StandardEnvironment;

/**
 * Created by za-huangsaigang on 2018/9/17.
 */
public class EnvironmentTest {

    @Test
    public void testEnvironment(){
        //会自动注册 System.getProperties() 和 System.getenv()
        Environment environment = new StandardEnvironment();
        System.out.println(environment.getProperty("file.encoding"));
    }
}
